home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / clntform.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.4 KB  |  74 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //Converting header file...
  6. //----------------------------------------------------------------------------
  7. #ifndef ClntFormHPP
  8. #define ClntFormHPP
  9. //----------------------------------------------------------------------------
  10. #include <ComCtrls.hpp>
  11. #include <Controls.hpp>
  12. #include <Classes.hpp>
  13. #include <Dialogs.hpp>
  14. #include <Controls.hpp>
  15. #include <Classes.hpp>
  16. #include <StdCtrls.hpp>
  17. #include <SysUtils.hpp>
  18. #include <Messages.hpp>
  19. #include <Windows.hpp>
  20. #include <Forms.hpp>
  21. #include <System.hpp>
  22. #include "IPCThrd.h"
  23.  
  24. #define WM_UPDATESTATUS WM_USER + 2
  25.  
  26. //-- type declarations -------------------------------------------------------
  27. class TClientForm : public TForm
  28. {
  29.  
  30. __published:
  31.     TStatusBar *StatusBar;
  32.     void __fastcall FormCreate(TObject *Sender);
  33.     void __fastcall FormDestroy(TObject *Sender);
  34.     void __fastcall FormMouseMove(TObject *Sender,  TShiftState Shift, int X, int Y);
  35.     void __fastcall FormMouseDown(TObject *Sender, TMouseButton Button,  TShiftState Shift, int X,
  36.         int Y);
  37.     void __fastcall FormResize(TObject *Sender);
  38.     void __fastcall FormClick(TObject *Sender);
  39.  
  40.     
  41.     
  42. private:
  43.     AnsiString FStatusText;
  44.     void __fastcall OnConnect(TIPCThread *Sender, bool Connecting);
  45.     void __fastcall OnSignal(TIPCThread *Sender, const TEventData &Data);
  46.     void __fastcall UpdateStatusBar(TMessage* Msg);
  47.     TIPCClient *IPCClient;
  48.     TClientFlags Flags;
  49.    
  50. public:
  51.     __fastcall  virtual TClientForm(TComponent *Owner) ;
  52.         virtual void __fastcall Dispatch(void *Message)
  53.         {
  54.           switch(((PMessage)Message)->Msg)
  55.             {
  56.  
  57.               case    WM_UPDATESTATUS:
  58.                  UpdateStatusBar((TMessage*)Message);
  59.               break;
  60.               default:
  61.                  TForm::Dispatch(Message);
  62.               break;
  63.             }
  64.         }
  65. };
  66.  
  67. //-- var, const, procedure ---------------------------------------------------
  68. extern TClientForm *ClientForm;
  69. //-- template instantiations -------------------------------------------------
  70. template class TClientFlags ;
  71. //-- end unit ----------------------------------------------------------------
  72. #endif    // ClntForm
  73.  
  74.